package edu.scut.course_management.dto;

import edu.scut.course_management.po.Teacher;
import edu.scut.course_management.po.Teaches;

/**
 * 用于“返回课程信息列表（学生）”，封装从数据库中取出的数据字段,存储的是改接口的中间结果
 * @author thompson
 */
public class GetCourseListOfS {
    private Teaches teaches;
    private String title;
    private String name;//教师姓名

    public Teaches getTeaches() {
        return teaches;
    }

    public void setTeaches(Teaches teaches) {
        this.teaches = teaches;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "GetCourseListOfS [name=" + name + ", teaches=" + teaches.toString() + ", title=" + title + "]";
    }

    public GetCourseListOfS(String teacherId, String name, Integer courseId, Integer periodId, String year, String term, String buildingId, String roomNumber, String identifier,String title) {
        this.teaches = new Teaches();
        this.teaches.setTeacherId(teacherId);
        this.teaches.setCourseId(courseId);
        this.teaches.setPeriodId(periodId);
        this.teaches.setYear(year);
        this.teaches.setTerm(term);
        this.teaches.setBuildingId(buildingId);
        this.teaches.setRoomNumber(roomNumber);
        this.teaches.setIdentifier(identifier);
        this.title = title;
        this.name = name;
    }

    

    
    
}